package com.zrrd.spring_04.myTest;

import com.zrrd.spring_04.config.SpringConfig;
import com.zrrd.spring_04.controller.ManagerController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestManagerController {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        ManagerController controller = context.getBean("managerController", ManagerController.class);
        controller.save();
        controller.edit();
        controller.remove();
        controller.query();
    }
}